import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:ui/api/router.dart';
import 'package:ui/api/startfunc.dart';
import 'package:ui/view/tab_view/view.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      title: '价标控制',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const TabViewPage(),
      getPages: AppPage.routers,
      // onReady: () => startFunc(),
      onInit: () => startFunc(),
      themeMode: ThemeMode.system,
    );
  }
}
